package com.mykt.controller;

import com.mykt.baseResult.BaseController;
import com.mykt.baseResult.RespondsResult;
import com.mykt.domain.log.SystemOperLog;
import com.mykt.service.SystemOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mykt/system/log")
public class SystemLogController extends BaseController {

    @Autowired
    SystemOperLogService operLogService;


    @PostMapping(value = "/write")
    public RespondsResult write(@RequestBody SystemOperLog operLog)
    {
        return RespondsResult.success(operLogService.write(operLog));
    }

}
